package com.situ.wms.impl;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.situ.wms.dao.ManagerDao;
import com.situ.wms.entity.Goods;
import com.situ.wms.entity.GoodsNotes;
import com.situ.wms.entity.Manager;
import com.situ.wms.service.ManagerService;



public class ManagerServiceImpl implements ManagerService {
	
	ManagerDao dao = new ManagerDao();
	@Override
	public void add(Goods goods) {
		dao.add(goods);

	}
	@Override
	public Long count(String keyword) {
	
		return dao.count(keyword);
	}

	@Override
	public void update(Goods goods) {
		dao.update(goods);

	}

	@Override
	public void delete(Integer id) {
		dao.delete(id);

	}



	@Override
	public List<Goods> select(int page, int limit, String keyword) {
		// TODO Auto-generated method stub
		return dao.select(page, limit, keyword);
	}

	@Override
	public Boolean check(String username, String password) {
		Manager m=dao.selectByusername(username);
		return m!=null&&m.getPassword().equals(password);
	}

	@Override
	public Manager selectByusername(String username) {
		// TODO Auto-generated method stub
		return dao.selectByusername(username);
	}
	@Override
	public Goods selectByid(int id) {
		// TODO Auto-generated method stub
		return dao.selectByid(id);
	}
	@Override
	public BigDecimal insumbyyear(String year) {
		// TODO Auto-generated method stub
		return dao.insumbyyear(year);
	}
	@Override
	public BigDecimal insumbymonth(String month) {
		// TODO Auto-generated method stub
		return dao.insumbymonth(month);
	}
	@Override
	public BigDecimal insumbyday(String day) {
		// TODO Auto-generated method stub
		return dao.insumbyday(day);
	}
	@Override
	public BigDecimal outsumbyyear(String year) {
		// TODO Auto-generated method stub
		return dao.outsumbyyear(year);
	}
	@Override
	public BigDecimal outsumbymonth(String month) {
		// TODO Auto-generated method stub
		return dao.outsumbymonth(month);
	}
	@Override
	public BigDecimal outsumbyday(String day) {
		// TODO Auto-generated method stub
		return dao.outsumbyday(day);
	}

}
